# coding: utf-8
from . import db, BaseModel


class SysRotationPic(db.Model):
    __tablename__ = 'sys_rotation_pic'

    auto_id = db.Column(db.BigInteger, primary_key=True, info='自增id')
    pic_id = db.Column(db.BigInteger, info='轮播图id')
    pic_name = db.Column(db.String(20, 'utf8mb4_0900_ai_ci'), server_default=db.FetchedValue(), info='轮播图名称')
    pic_url = db.Column(db.String(255, 'utf8mb4_0900_ai_ci'), server_default=db.FetchedValue(), info='url')
    is_delete = db.Column(db.Integer, info='是否已删除')
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='创建时间')
    uodate_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='更新时间')
